import { CloseOne, Correct, Success } from '@icon-park/vue-next';
import { markRaw } from 'vue';

const success = () => import('@/views/result/success/index.vue');
const fail = () => import('@/views/result/fail/index.vue');

const pages = {
  path: '/result',
  name: 'result',
  redirect: '/result/success',
  meta: {
    icon: markRaw(Correct),
    title: '结果页'
  },
  children: [
    {
      path: 'success',
      name: 'result_success',
      meta: {
        icon: markRaw(Success),
        title: '成功页'
      },
      component: success
    },
    {
      path: 'fail',
      name: 'result_fail',
      meta: {
        icon: markRaw(CloseOne),
        title: '失败页'
      },
      component: fail
    }
  ]
};
export default pages;
